asQuery

abstract fun <T> asQuery(type: KClass<T>): <ERROR CLASS><T>

Converts the Subscription.queryDescription back to a RealmQuery that can be executed against the local Realm.

Parameters

type

a reference to the Kotlin model class that represents objectType.

Throws

IllegalArgumentException

if type does not match the type of objects this query can return.